package feizhou.untils.tools;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * Created by lizhi_zheng on 2019/6/11
 */
public class PasswordUtil {

    private static final String key = "g8HzK9Wbnlda";


    public static String encode(String password) {
        if (StringUtil.isEmpty(password)) {
            return null;
        }
        String result = DigestUtils.md5Hex(DigestUtils.md5Hex(password) + key);

        return result;
    }
}
